﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace RCSP.FrontEnd
{
    public class RCSPAppManager
    {
        public RCSPAppManager() { }

        public static void SetObject(ApplicationVars name, object value)
        {
            CurrentApplication[name.ToString()] = value;
        }

        public static object GetObject(ApplicationVars name)
        {
            string str = name.ToString();
            return CurrentApplication[name.ToString()];
        }

        public static void RemoveObject(ApplicationVars name)
        {
            CurrentApplication.Remove(name.ToString());
        }

        public static System.Web.HttpApplicationState CurrentApplication
        {
            get
            {
                return HttpContext.Current.Application;
            }
        }

        public static void ClearApplication()
        {
            CurrentApplication.Clear();
        }
    }
}
